#ifndef Shell_h
#define Shell_h

#include "Thread.h"
#include "System.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <fcntl.h>

#define MAXLENGTH 256

using namespace std;

class Shell : public iSchedulable
{
public:
	Shell(System* sys);
	~Shell(void);

	static void* terminal(void* arg);
	int getTimeRequest();
private:
	Thread* m_shell;
	System* m_system;
	void waitForMail(int howManyMsgs);
};

#endif
